package org.study.searchsummer;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

/**
 * 
* @Description: 客户端服务实例处理 
* @author: 席登强   
* @date: 2018年3月24日 上午8:43:10 
*
 */
public class HystreamSpringContext implements ApplicationContextAware {
	private static final Logger LOG = LoggerFactory.getLogger(HystreamSpringContext.class);
	///spring上下文对象
	private static ApplicationContext applicationContext;
	@Override
	public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
		HystreamSpringContext.applicationContext = applicationContext;
	}
	public static ApplicationContext getApplicationContext(){
		return applicationContext;
	}
}
